import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";

const config: HardhatUserConfig = {
  solidity: "0.8.0",
  networks: {
    // hardhat内置测试网络连接
    localhost: {
      url: 'http://127.0.0.1:8545',
    },
    // ganache 网络连接配置信息
    ganache: {
      url: 'http://127.0.0.1:7545',
      accounts: [
        // 默认账户私钥，如用到的账户越多，这里需要添加更多私钥
        '0x172a483415c5e119f1ea336d44646572ac34a088e7bc2884f8e1f83da4cb304a'
      ]
    },
  },
};

export default config;